home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 0095 / imprint.bat < prev    next >
DOS Batch File  |  1997-03-24  |  3KB  |  83 lines

  1. ECHO OFF
  2. :  IMPRINT.BAT is an aid to printing documentation files distributed
  3. :  with the INTEGRITY MASTER (IM) install files.
  4. IF "%1"=="" goto help
  5. IF %1==? goto help
  6. IF NOT EXIST %1 GOTO IMPRINTtxt
  7. CLS
  8. ECHO ╔═════════════════════════════════════════════════════════════════════
  9. ECHO ║
  10. ECHO ║ File "%1" will be printed (copied to PRN)
  11. ECHO ║
  12. ECHO ║ You may also wish to read this file on your screen; if so,
  13. ECHO ║ just enter the command:
  14. ECHO ║
  15. ECHO ║     IMVIEW %1        (and hit ENTER)
  16. ECHO ║
  17. ECHO ╚═════════════════════════════════════════════════════════════════════
  18. PAUSE Hit any key to start printing %1
  19. CLS
  20. COPY %1 PRN
  21. GOTO END
  22. :IMPRINTtxt
  23. IF NOT EXIST %1.TXT GOTO IMPRINTdoc
  24. CLS
  25. ECHO ╔═════════════════════════════════════════════════════════════════════
  26. ECHO ║
  27. ECHO ║ File "%1.TXT" will be printed (copied to PRN)
  28. ECHO ║
  29. ECHO ║ You may also wish to read this file on your screen; if so,
  30. ECHO ║ just enter the command:
  31. ECHO ║
  32. ECHO ║     IMVIEW %1        (and hit ENTER)
  33. ECHO ║
  34. ECHO ╚═════════════════════════════════════════════════════════════════════
  35. PAUSE Hit any key to start printing %1.TXT
  36. CLS
  37. COPY %1.TXT PRN
  38. GOTO END
  39. :IMPRINTdoc
  40. IF NOT EXIST %1.TXT GOTO NotFound
  41. CLS
  42. ECHO ╔═════════════════════════════════════════════════════════════════════
  43. ECHO ║
  44. ECHO ║ File "%1.TXT" will be printed (copied to PRN)
  45. ECHO ║
  46. ECHO ║ You may also wish to read this file on your screen; if so,
  47. ECHO ║ just enter the command:
  48. ECHO ║
  49. ECHO ║     IMVIEW %1        (and hit ENTER)
  50. ECHO ║
  51. ECHO ╚═════════════════════════════════════════════════════════════════════
  52. PAUSE Hit any key to start printing %1.TXT
  53. CLS
  54. COPY %1.TXT PRN
  55. GOTO END
  56. :NotFound
  57. ECHO ╔═════════════════════════════════════════════════════════════════════
  58. ECHO ║ File %1, %1.TXT or %1.TXT were not found.
  59. ECHO ║
  60. ECHO ║ Please locate the file you were trying to print.  If that file is not
  61. ECHO ║ in the current directory then enter: "IMPRINT \some\directory" where
  62. ECHO ║ "\some\directory" is the location of that file.
  63. ECHO ╚═════════════════════════════════════════════════════════════════════
  64. ECHO .
  65. :Help
  66. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  67. ECHO ║ Syntax: IMPRINT filename                                                ║
  68. ECHO ║                                                                         ║
  69. ECHO ║    If filename is not found, IMPRINT will look for filename.TXT         ║
  70. ECHO ║    If filename.TXT is not found, IMPRINT will look for filename.TXT     ║
  71. ECHO ║                                                                         ║
  72. ECHO ║ To print the install and routine use checklist for Integrity Master,    ║
  73. ECHO ║ enter the command: IMPRINT IMPROC                                       ║
  74. ECHO ║                                                                         ║
  75. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  76. ECHO ║ For example:                                                            ║
  77. ECHO ║   If you wish to print the file "QUESTION.TXT" you can enter the command║
  78. ECHO ║   "IMPRINT QUESTION" and the file "QUESTION.TXT" will be displayed, as  ║
  79. ECHO ║   long as a file named "QUESTION" (with no extension) does not exist    ║
  80. ECHO ║   in the current directory.                                             ║
  81. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  82. :END
  83.